import request from '@/utils/request'





//通过code去后端先解密查询数据
// 查询就业帮扶详细
export function getCodeByHelp(data) {
  return request({
    url: '/employment/studentHelp/getCodeByHelp',
    method: 'post',
    data:data,
  })
}
// 推送机器人
export function wechatPush(data) {
  return request({
    url: '/employment/studentHelp/wechatPush',
    method: 'post',
    data: data
  })
}

// 完成就业帮扶
export function finishStudentHelp(data) {
  return request({
    url: '/employment/studentHelp/finishStudentHelp',
    method: 'put',
    data: data
  })
}

// 查询就业帮扶列表
export function listStudentHelp(query) {
  return request({
    url: '/employment/studentHelp/list',
    method: 'get',
    params: query
  })
}
//去上传图片到cos
export function uploadCos(file) {
  return request({
    url: '/employment/studentHelp/cos',
    method: 'post',
  })
}

// 查询就业帮扶详细
export function getStudentHelp(id) {
  return request({
    url: '/employment/studentHelp/' + id,
    method: 'get'
  })
}

// 新增就业帮扶
export function addStudentHelp(data) {
  return request({
    url: '/employment/studentHelp',
    method: 'post',
    data: data
  })
}

// 修改就业帮扶
export function updateStudentHelp(data) {
  return request({
    url: '/employment/studentHelp',
    method: 'put',
    data: data
  })
}

// 删除就业帮扶
export function delStudentHelp(id) {
  return request({
    url: '/employment/studentHelp/' + id,
    method: 'delete'
  })
}
